Erode
Remove pixel that are close to the border of the image.
Node Data | |
|---|---|
Display name | |
Erode | |
Internal name | |
Node_Erode | |
Inheritances | |
| Node_Processor | |
| Node_Erode | |
Inputs | |
Node_Erode | |
toggle |
Channel |
surface |
Surface In |
surface |
Mask |
slider |
Mix |
enum |
Pattern |
int |
Width |
bool |
Preserve Border |
bool |
Use Alpha |
Outputs | |
Node_Erode | |
surface |
Surface Out |
Attributes | |
| Color Depth | |
| Oversample | |
Erode node delete the edge of the image as far as the Width properties to create a smaller inset of the shape.
Properties
Width
How far away from the border to delete.
Preserve Border
Whether to treat the edges of the image as the border, or as a filled space.
Use Alpha
Whether to use transparent pixel or black pixel as the border.
Related Links
- Base Code: /scripts/node_erode/node_erode.gml
- Shader [sh_erode]: /shaders/sh_erode/sh_erode.fsh